package com.kurumi.medical.pojo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.kurumi.medical.util.StringUtil;

/**
 * 护理记录明细
 * @author lyh
 *
 */
public class HospitalizationNurseRecord {

	/**
	 * 护理时间
	 */
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date nurseDateTime;
	
	/**
	 * 护理记录
	 */
	private String nurseContent;
	
	/**
	 * 护理签名
	 */
	private String nurserSignature;

	public Date getNurseDateTime() {
		return nurseDateTime;
	}

	public void setNurseDateTime(Date nurseDateTime) {
		this.nurseDateTime = nurseDateTime;
	}

	public String getNurseContent() {
		return StringUtil.meaningStr(nurseContent);
	}

	public void setNurseContent(String nurseContent) {
		this.nurseContent = nurseContent;
	}

	public String getNurserSignature() {
		return StringUtil.meaningStr(nurserSignature);
	}

	public void setNurserSignature(String nurserSignature) {
		this.nurserSignature = nurserSignature;
	}
	
	@JsonIgnore
	public boolean isEmpty(){
		if(this.getNurseContent()==null && this.getNurserSignature() == null){
			return true;
		}
		return false;
	}
}
